package com.galaxy.user.domain.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.galaxy.common.mybatis.core.domain.BaseEntity;
import com.galaxy.user.domain.UserAccount;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@EqualsAndHashCode(callSuper = true)
@Data
@AutoMapper(target = UserAccount.class)
public class UserAccountVo extends BaseEntity {
    /**
     * 账户ID
     */
    private Long id;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 账户余额
     */
    private BigDecimal balance;

    /**
     * 积分
     */
    private Integer points;

    /**
     * 性别（0未知 1男 2女）
     */
    private Integer gender;

    /**
     * 最后登录时间
     */
    private LocalDateTime lastLoginTime;

    @TableField(exist = false)
    private UserBaseVo userBase;
}
